<?if(PHOTOS_MULTIALBUM):?>
<div id="content" class="photos">
    <h1><?=$data->TITLE?></h1>
    <?
    if($data->photos) foreach ($data->photos as $i): ?>
    <div class="album">
            <div class="cover">
            <a href="/photos/album/<?=$i->ID?>" title="<?=$i->name?>">
                    <img class="shadow" src="http://<?=COOKIELESS.'/'.$i->thumb->src?>" alt="<?=$i->name?>" />
                    <img src="http://<?=COOKIELESS.'/'.$i->thumb->src?>" alt="<?=$i->name?>" />
            </a>
            </div>
            <a class="albumName" href="/photos/album/<?=$i->ID?>" title="<?=$i->name?>"><?=$i->name?></a>
            <?/*<div class="links tool">
                    <a class="box" href="javascript:del(<?=$p->ID?>);" title="<?=_('Delete photo')?>"><?=_('Edit Album')?></a>
                    <a class="box" href="/profile/photo/<?=$data->photo->ID?>" title="<?=_('View Album')?>"><?=_('View Album')?></a>
                    <a class="box" href="/profile/photo/<?=$data->photo->ID?>" title="<?=_('Delete Album')?>"><?=_('Delete Album')?></a>
            </div*/?>
    </div>
    <? endforeach; ?>
<div class="clear"></div>
</div>
<div id="aside">
    <? @include 'apps/advertisement/template/_item.html'; ?>
</div>
<?else:
    include 'apps/photos/template/album.html';
endif;?>